

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>The callback module content &mdash; buzzRTShare v1.0.1 documentation</title>
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '1.0.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="buzzRTShare v1.0.1 documentation" href="index.html" />
    <link rel="next" title="The connections module content" href="connections.html" />
    <link rel="prev" title="The activity module content" href="activity.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="connections.html" title="The connections module content"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="activity.html" title="The activity module content"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">buzzRTShare v1.0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-callback">
<span id="the-callback-module-content"></span><h1>The <cite>callback</cite> module content<a class="headerlink" href="#module-callback" title="Permalink to this headline">¶</a></h1>
<div class="section" id="the-callback-class">
<h2>The <tt class="docutils literal"><span class="pre">Callback</span></tt> class<a class="headerlink" href="#the-callback-class" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="callback.Callback">
<em class="property">class </em><tt class="descclassname">callback.</tt><tt class="descname">Callback</tt><a class="headerlink" href="#callback.Callback" title="Permalink to this definition">¶</a></dt>
<dd><p>Extend webapp.RequestHandler.
Class Callback is mapped on /callback request.</p>
<dl class="method">
<dt id="callback.Callback.get">
<tt class="descname">get</tt><big>(</big><big>)</big><a class="headerlink" href="#callback.Callback.get" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the hub.challenge only if a hub.mode parameter is present.
It&#8217;s called from the pubsubhubbub hub for verify the callback
both for the subscription that the unsubscription.
If the hub.mode parameter isn&#8217;t specified call the post function.
The parameters is passed trough a GET HTTP request mapped on the /callback url.</p>
</dd></dl>

<dl class="method">
<dt id="callback.Callback.post">
<tt class="descname">post</tt><big>(</big><big>)</big><a class="headerlink" href="#callback.Callback.post" title="Permalink to this definition">¶</a></dt>
<dd><p>The method called on POST request.
Do the parsing of the Google Buzz XML feed, find the required
parameters and update the status on twitter.
It receives the Google Buzz XML feed provided by the pubsubhubbub hub
in the body of the request.
The body is passed trough a POST HTTP request mapped on the /callback url.</p>
</dd></dl>

</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">The <cite>callback</cite> module content</a><ul>
<li><a class="reference internal" href="#the-callback-class">The <tt class="docutils literal"><span class="pre">Callback</span></tt> class</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="activity.html"
                        title="previous chapter">The <cite>activity</cite> module content</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="connections.html"
                        title="next chapter">The <cite>connections</cite> module content</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/callback.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" size="18" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="connections.html" title="The connections module content"
             >next</a> |</li>
        <li class="right" >
          <a href="activity.html" title="The activity module content"
             >previous</a> |</li>
        <li><a href="index.html">buzzRTShare v1.0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2010, Giuseppe Buzzanca (PiDy) &lt; giuseppebuzzanca@gmail.com &gt; .
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
    </div>
  </body>
</html>